package com.example.apiclientsdk.util;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

/**
 * author xsq
 */
public class SignUtils {
    public static String getSign(String body, String secret) {
        Digester md5 = new Digester(DigestAlgorithm.SHA256);
        String testStr  = body +"."+ secret;
// 5393554e94bf0eb6436f240a4fd71282
        String digestHex = md5.digestHex(testStr);
        return digestHex;
    }
}
